package com.firewolf.springboot;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ManagerController {
	
	@Autowired
	private ManagerService mService;
	
	@RequestMapping("/save")
	public String saveManagers(){
		List<Manager> mList = new ArrayList<>();
		mList.add(new Manager("张三", "开发部", "这是开发的经理"));
		mList.add(new Manager("李四", "测试部", "这是测试的经理"));
		mList.add(new Manager("王五", "运维部", "这是运维的经理"));
		mService.saveManagers(mList);

		return "success";
	}
}
